/**
 * Resource class implements the resources the player is going to collect.  It
 * is an extension of the Actor class.
 * 
 * @author ggere
 */
public class Resource extends Actor {
	private String type;
	
	public Resource(Animation anim, String type, int x) {
		super(anim);
		this.x = x;
		this.type = type;
	}
	
	public String getType() {
		return type;
	}

	public void update(double elapsedTime) {
		super.update(elapsedTime);
		// move the resource
		y = (int)(y + 200 * (elapsedTime /1000000000L));
		if (y > 480) {
			markedForDeath = true;
		}
	}
}
